import {
    Loading,
    Button,
    List,
    Icon,
    NavBar,
    Search,
    Badge,
    Rate,
    Cell,
    CellGroup,
    Form,
    Field,
    DatetimePicker,
    Popup,
    Uploader,
    RadioGroup,
    Radio,
    Tab,
    Tabs,
    PullRefresh,
    Col,
    Row,
    Tag,
    Step,
    Steps,
    Switch,
    Picker,
    Swipe,
    SwipeItem,
    Sku,
    ActionSheet,
    ContactList,
    Checkbox,
    CheckboxGroup,
    Cascader,
    Calendar,
    Empty
} from 'vant';

const compontent = [
    Loading,
    Button, List, Cell,
    Icon,
    NavBar,
    Badge,
    Search,
    Rate,
    CellGroup, Form, Field,
    DatetimePicker, Popup, Uploader, RadioGroup, Radio, Tab, Tabs, PullRefresh, Col, Row, Tag, Step, Steps, Switch, Picker, Swipe, SwipeItem, Sku, ActionSheet, ContactList, Checkbox, CheckboxGroup, Cascader, Calendar, Empty]
export default function install(Vue) {
    if (install.installed) return
    compontent.forEach(i => Vue.component(i.name, i))
}


